package inheritedPanel;

import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class ControllerGeneral {
	public static void setStyleMenuLeft(Container con) {
        for(Component C: con.getComponents()){
            if(C instanceof JLabel){
                JLabel lbl = (JLabel) C;
                lbl.setFont(new Font("Segoe UI", Font.PLAIN, 17));
                lbl.setForeground(Color.WHITE);
                lbl.setCursor(new Cursor(12));
            }else if(C instanceof Container){
                setStyleMenuLeft((Container)C);
            }
        }
    }
	public static void setStyleMenuTop(Container con) {
        for(Component C: con.getComponents()){
            if(C instanceof JLabel){
                final JLabel lbl = (JLabel) C;
                lbl.setFont(new Font("Segoe UI", Font.PLAIN, 15));
                lbl.setHorizontalTextPosition(SwingConstants.CENTER);
                lbl.setVerticalTextPosition(SwingConstants.BOTTOM);
                lbl.setForeground(Color.WHITE);
                lbl.setCursor(new Cursor(12));
            }else if(C instanceof Container){
                setStyleMenuTop((Container)C);
            }
        }
    }
}
